﻿/******************************************
 * ITESM CEM 12 de septiembre de 2010
 * Actividad Breakout 2a parte
 * Alejandro Jesús Morales Torres
 * Gerardo Samuel Cabello Montes de Oca
 * 1161376
 * 965042
 * *****************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
namespace BreakoutAlexMetal
{
    class Bloque
    {
        private Texture2D imagenBloque;
        private Vector2 posicion;
        private Vector2 centro;
        private bool activo;

        public Bloque(Texture2D imagen)
        {
            imagenBloque = imagen;
            activo = true;
            centro = new Vector2(30.0f, 15.0f);
        }

        public void setPosition (Vector2 pos){
            posicion = pos;
        }

        public Vector2 getPosition (){
            return posicion;
        }

        public bool isActivo() {
            return activo;
        }

        public void borrar()
        {
            activo = false;
        }

        public Texture2D getImage()
        {
            return imagenBloque;
        }



        public void bajar()
        {
            posicion.Y += 20;
        }
    }
}
